﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Collections;

namespace BUS
{
    public class HoaDonBUS
    {
        public static int ThemHoaDon(HoaDonDTO dv)
        {
            return HoaDonDAO.ThemHoaDon(dv);
        }

        public static HoaDonDTO LayThongTinHoaDon(String maHD)
        {
            return HoaDonDAO.LayThongTinHoaDon(maHD);
        }
        public static int Xoa(String ma)
        {
            return HoaDonDAO.Xoa(ma);
        }
        public static ArrayList LayDanhSach()
        {
            return HoaDonDAO.LayDanhSach();
        }
        public static int CapNhat(HoaDonDTO hd)
        {
            return HoaDonDAO.CapNhat(hd);
        }
        public static ArrayList LayDanhSachTheoKhachVaThoiGian(String maKH, DateTime thoigian)
        {
            return HoaDonDAO.LayDanhSachTheoKhachVaThoiGian(maKH, thoigian);
        }
    }
}
